var
	i,n:integer;
	a,sum:int64;
begin
	readln(n);
	a:=1;
	sum:=0;
	for i:=1 to n do
	begin
		sum:=sum+a;
		a:=a*2;
	end;
	writeln(sum);
end.
